package com.sanjiahantang.youjiaclient.module.decorate.beans;

import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import com.sanjiahantang.youjiaclient.base.BaseBean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * Created by zy on 2017/9/14.
 */

public class DecorateManageBean extends BaseBean {

    private String data;

    public List<Data> getData() {
        return new Gson().fromJson(data,new TypeToken<List<Data>>(){}.getType());
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class Data implements Serializable{

        private String address;
        private String customerPhone;
        private String customerName;
        private String engineName;
        private String engineNumber;
        private String engineStatusId;
        private String engineStatusName;
        private int groupId;
        private int isOfficial;
        private int piId;
        private int ppId;
        private String roleDesignerPhone;
        private String roleProjectPhone;
        private String roleSupervisionPhone;
        private ArrayList<HashMap<String,Role>> roleList;
        private ArrayList<HashMap<String,Role>> roleSubcontractList;
        private ArrayList<Step> beforeCompletionList;
        private ArrayList<Step> completionList;
        private ArrayList<Step> materialList;
        private ArrayList<Step> metaphaseList;
        private ArrayList<Step> otherList;
        private ArrayList<Step> reviewList;
        private String orderStatusId;
        private String orderStatusName;
        private String orderCode;
        private String roleInProject;
        private ProjectInfo projectInfo;

        public ArrayList<HashMap<String, Role>> getRoleSubcontractList() {
            return roleSubcontractList;
        }

        public void setRoleSubcontractList(ArrayList<HashMap<String, Role>> roleSubcontractList) {
            this.roleSubcontractList = roleSubcontractList;
        }

        public ProjectInfo getProjectInfo() {
            return projectInfo;
        }

        public void setProjectInfo(ProjectInfo projectInfo) {
            this.projectInfo = projectInfo;
        }

        public String getCustomerName() {
            return customerName;
        }

        public void setCustomerName(String customerName) {
            this.customerName = customerName;
        }

        public String getRoleInProject() {
            return roleInProject;
        }

        public void setRoleInProject(String roleInProject) {
            this.roleInProject = roleInProject;
        }

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public String getOrderStatusId() {
            return orderStatusId;
        }

        public void setOrderStatusId(String orderStatusId) {
            this.orderStatusId = orderStatusId;
        }

        public String getOrderStatusName() {
            return orderStatusName;
        }

        public void setOrderStatusName(String orderStatusName) {
            this.orderStatusName = orderStatusName;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getCustomerPhone() {
            return customerPhone;
        }

        public void setCustomerPhone(String customerPhone) {
            this.customerPhone = customerPhone;
        }

        public String getEngineName() {
            return engineName;
        }

        public void setEngineName(String engineName) {
            this.engineName = engineName;
        }

        public String getEngineNumber() {
            return engineNumber;
        }

        public void setEngineNumber(String engineNumber) {
            this.engineNumber = engineNumber;
        }

        public String getEngineStatusId() {
            return engineStatusId;
        }

        public void setEngineStatusId(String engineStatusId) {
            this.engineStatusId = engineStatusId;
        }

        public String getEngineStatusName() {
            return engineStatusName;
        }

        public void setEngineStatusName(String engineStatusName) {
            this.engineStatusName = engineStatusName;
        }

        public int getGroupId() {
            return groupId;
        }

        public void setGroupId(int groupId) {
            this.groupId = groupId;
        }

        public int getIsOfficial() {
            return isOfficial;
        }

        public void setIsOfficial(int isOfficial) {
            this.isOfficial = isOfficial;
        }

        public int getPiId() {
            return piId;
        }

        public void setPiId(int piId) {
            this.piId = piId;
        }

        public int getPpId() {
            return ppId;
        }

        public void setPpId(int ppId) {
            this.ppId = ppId;
        }

        public String getRoleDesignerPhone() {
            return roleDesignerPhone;
        }

        public void setRoleDesignerPhone(String roleDesignerPhone) {
            this.roleDesignerPhone = roleDesignerPhone;
        }

        public String getRoleProjectPhone() {
            return roleProjectPhone;
        }

        public void setRoleProjectPhone(String roleProjectPhone) {
            this.roleProjectPhone = roleProjectPhone;
        }

        public String getRoleSupervisionPhone() {
            return roleSupervisionPhone;
        }

        public void setRoleSupervisionPhone(String roleSupervisionPhone) {
            this.roleSupervisionPhone = roleSupervisionPhone;
        }

        public ArrayList<HashMap<String, Role>> getRoleList() {
            return roleList;
        }

        public void setRoleList(ArrayList<HashMap<String, Role>> roleList) {
            this.roleList = roleList;
        }

        public ArrayList<Step> getBeforeCompletionList() {
            return beforeCompletionList;
        }

        public void setBeforeCompletionList(ArrayList<Step> beforeCompletionList) {
            this.beforeCompletionList = beforeCompletionList;
        }

        public ArrayList<Step> getCompletionList() {
            return completionList;
        }

        public void setCompletionList(ArrayList<Step> completionList) {
            this.completionList = completionList;
        }

        public ArrayList<Step> getMaterialList() {
            return materialList;
        }

        public void setMaterialList(ArrayList<Step> materialList) {
            this.materialList = materialList;
        }

        public ArrayList<Step> getMetaphaseList() {
            return metaphaseList;
        }

        public void setMetaphaseList(ArrayList<Step> metaphaseList) {
            this.metaphaseList = metaphaseList;
        }

        public ArrayList<Step> getOtherList() {
            return otherList;
        }

        public void setOtherList(ArrayList<Step> otherList) {
            this.otherList = otherList;
        }

        public ArrayList<Step> getReviewList() {
            return reviewList;
        }

        public void setReviewList(ArrayList<Step> reviewList) {
            this.reviewList = reviewList;
        }
    }

    public static class Role implements Serializable{
        private String address;
        private String idCode;
        private String phone;
        private String userName;
        private String url;
        private int type;

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getIdCode() {
            return idCode;
        }

        public void setIdCode(String idCode) {
            this.idCode = idCode;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }
    }


    public static class Step implements Serializable{

        private int piId;
        private int statusId;
        private String createTime;
        private String updateTime;
        private int roleId;
        private String rolePhone;
        private int groupId;
        private String event;
        private int priId;
        private String passStateId;
        private String remark;

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getPassStateId() {
            return passStateId;
        }

        public void setPassStateId(String passStateId) {
            this.passStateId = passStateId;
        }

        public int getPiId() {
            return piId;
        }

        public void setPiId(int piId) {
            this.piId = piId;
        }

        public int getStatusId() {
            return statusId;
        }

        public void setStatusId(int statusId) {
            this.statusId = statusId;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public int getRoleId() {
            return roleId;
        }

        public void setRoleId(int roleId) {
            this.roleId = roleId;
        }

        public String getRolePhone() {
            return rolePhone;
        }

        public void setRolePhone(String rolePhone) {
            this.rolePhone = rolePhone;
        }

        public int getGroupId() {
            return groupId;
        }

        public void setGroupId(int groupId) {
            this.groupId = groupId;
        }

        public String getEvent() {
            return event;
        }

        public void setEvent(String event) {
            this.event = event;
        }

        public int getPriId() {
            return priId;
        }

        public void setPriId(int priId) {
            this.priId = priId;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }
    }

    public static class ProjectInfo implements Serializable{
        private String likeStyleName;
        private String apartmentTypeName;
        private String url;

        public String getLikeStyleName() {
            return likeStyleName;
        }

        public void setLikeStyleName(String likeStyleName) {
            this.likeStyleName = likeStyleName;
        }

        public String getApartmentTypeName() {
            return apartmentTypeName;
        }

        public void setApartmentTypeName(String apartmentTypeName) {
            this.apartmentTypeName = apartmentTypeName;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }
}
